<?php
/*
 * Created on 04.01.2006
 *
 */

class c_ifHandler 
{

    function startElement (& $sender, $attrs)
    {
        if (!$attrs['test'])
        {
            die ("Attribute test is missing in out tag\n");
        }
        $sender->appendCode('if ('.$attrs['test'].'){'."\n");
    }
    
    function endElement (& $sender)
    {
        $sender->appendCode('}'."\n");
    }

}

?>
